home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / intuition / sghooks.inc < prev   
Text File  |  1998-06-24  |  1KB  |  66 lines

  1. include "inc/exec/types.inc";
  2.  
  3. struct StringExtend is
  4.   Font:ulong;
  5.   Pens[2]:ubyte;
  6.   ActivePens[2]:ubyte;
  7.   InitialModes:ulong;
  8.   EditHook:ulong;
  9.   WorkBuffer:ulong;
  10.   Reserved[4]:ulong;
  11. ;
  12.  
  13. struct SGWork is
  14.   Gadget:ulong;
  15.   StringInfo:ulong;
  16.   WorkBuffer:ulong;
  17.   PrevBuffer:ulong;
  18.   Modes:ulong;
  19.   IEvent:ulong;
  20.   Code:uword;
  21.   BufferPos:word;
  22.   NumChars:word;
  23.   Actions:ulong;
  24.   LongInt:long;
  25.   GadgetInfo:ulong;
  26.   EditOp:uword;
  27. ;
  28.  
  29. def EO_NOOP = ($0001);
  30.  
  31. def EO_DELBACKWARD = ($0002);
  32. def EO_DELFORWARD = ($0003);
  33. def EO_MOVECURSOR = ($0004);
  34. def EO_ENTER = ($0005);
  35. def EO_RESET = ($0006);
  36. def EO_REPLACECHAR = ($0007);
  37. def EO_INSERTCHAR = ($0008);
  38. def EO_BADFORMAT = ($0009);
  39. def EO_BIGCHANGE = ($000a);
  40. def EO_UNDO = ($000b);
  41. def EO_CLEAR = ($000c);
  42. def EO_SPECIAL = ($000d);
  43.  
  44. def SGM_REPLACE = (1<<0);
  45. def SGM_FIXEDFIELD = (1<<1);
  46. def SGM_NOFILTER = (1<<2);
  47. def SGM_EXITHELP = (1<<7);
  48.  
  49. def SGM_NOCHANGE = (1<<3);
  50. def SGM_NOWORKB = (1<<4);
  51. def SGM_CONTROL = (1<<5);
  52. def SGM_LONGINT = (1<<6);
  53.  
  54. def SGA_USE = ($1);
  55. def SGA_END = ($2);
  56. def SGA_BEEP = ($4);
  57. def SGA_REUSE = ($8);
  58. def SGA_REDISPLAY = ($10);
  59.  
  60. def SGA_NEXTACTIVE = ($20);
  61. def SGA_PREVACTIVE = ($40);
  62.  
  63. def SGH_KEY = (1);
  64. def SGH_CLICK = (2);
  65.  
  66.